#!/bin/bash
#
JAVA_OPTIONS="-Xms256m -Xmx768m -Xss512k -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/video/logs -verbose:gc -Xloggc:/data/demo/logs/gc.log -XX:+PrintGCDetails -XX:+PrintHeapAtGC -XX:+PrintGCDateStamps -XX:+PrintTenuringDistribution -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=5m -Duser.timezone=Asia/Shanghai -Dapp.log.home=/data/demo/logs"
APP_NAME="download"
java ${JAVA_OPTIONS} -jar /data/demo/usefullc-platform/usefullc-${APP_NAME}/target/usefullc-${APP_NAME}.jar > "/data/demo/logs/startup.log" &
